home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / rayshade / makefile.amiga < prev    next >
Makefile  |  1995-02-13  |  4KB  |  163 lines

  1. #
  2. # Makefile for rayshade.
  3. #
  4. # Craig Kolb
  5. #
  6. # $Id: Makefile.SH,v 4.0 91/07/17 14:50:30 kolb Exp Locker: kolb $
  7. #
  8. # Bin directory
  9. #
  10. BINDIR = /usr/local 
  11. OPTIMIZE = -O3 -fno-defer-pop -fno-builtin
  12. URTINC = 
  13. CCFLAGS = -c -Dexit=myexit -m68020 -m68881 -Dmain=mymain
  14. URTLIB = ../URT/lib/librle.a
  15. CC = gcc
  16. MKDEP = /mkdep
  17. YACC = bison -y
  18. CLC = 
  19.  
  20. LIBRAYDIR = ../libray
  21. LIBSHADEDIR = ../libshade
  22. INCLUDE = -nostdinc -I$(LIBRAYDIR) -I$(LIBSHADEDIR) $(URTINC) -I.. \
  23. -IGNU:include -IGNU:os-include -Isc:include
  24. YFLAGS = -d
  25.  
  26. LIBRAY = $(LIBRAYDIR)/libray.a
  27. LIBSHADE = $(LIBSHADEDIR)/libshade.a
  28.  
  29. #
  30. # If you are using LINDA, add -DLINDA
  31. # If you are running 'tsnet'-style LINDA, add -DTSNET
  32. # If you are running on a Multimax, add -DMULTIMAX -DSHAREDMEM
  33.  
  34. CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
  35.  
  36. #
  37. # C-Linda flags, if appropriate
  38. #CLFLAGS = -linda ts 20000
  39. #
  40.  
  41. .c.o:
  42.     $(CC) $(CFLAGS) $<
  43.  
  44. SHELL = /bin/sh
  45.  
  46. LIBS = $(LIBSHADE) $(LIBRAY) $(URTLIB) ../libextra/libextra.a -lm -lfl
  47.  
  48. LDFLAGS = -s -m68020
  49.  
  50. DRIVE_C =    main.c raytrace.c version.c
  51.  
  52. DRIVE_H =    raytrace.h
  53.  
  54. DRIVE_O =    main.o raytrace.o version.o
  55.  
  56. HFILES = $(DRIVE_H)
  57.  
  58. CFILES = $(DRIVE_C)
  59.  
  60. SHFILES = Makefile.SH
  61.  
  62. OBJ = $(DRIVE_O)
  63.  
  64. DEPENDSRC = $(DRIVE_C)
  65.  
  66. #
  67. # Change $(CC) below to $(CLC) if using Linda.
  68. #
  69. rayshade: $(OBJ) # $(LIBS)
  70.     $(CC) $(LDFLAGS) -o rayshade GNU:lib/rle_stderrfix.o $(OBJ) $(LIBS)
  71.  
  72.  
  73. #
  74. # Uncomment the following rule if using Linda.
  75. #
  76. #raytrace.lo: raytrace.cl
  77. #    $(CLC) $(INCLUDE) $(LCFLAGS) -c raytrace.cl
  78.  
  79. #
  80. # End of configuration section
  81. #
  82. install:    rayshade
  83.         mv rayshade $(BINDIR)/rayshade
  84.  
  85. clean:
  86.     delete \#?.o quiet
  87.  
  88. realclean:
  89.     delete \#?.o y.tab.h
  90.     delete \#?.orig Makefile QUIET
  91.  
  92. lint:
  93.     lint $(CFLAGS) -x $(CFILES) -lm
  94.  
  95. tags:
  96.     ctags -t $(CFILES)
  97.  
  98. # DO NOT DELETE THIS LINE
  99. main.o: main.c
  100. main.o: /config.h
  101. #main.o: /include/rle.h
  102. #main.o: /include/rle_code.h
  103. #main.o: /include/rle_raw.h
  104. main.o: /libray/libcommon/color.h
  105. main.o: /libray/libcommon/common.h
  106. main.o: /libray/libcommon/error.h
  107. main.o: /libray/libcommon/expr.h
  108. main.o: /libray/libcommon/ray.h
  109. main.o: /libray/libcommon/transform.h
  110. main.o: /libray/libcommon/vector.h
  111. main.o: /libray/libobj/bounds.h
  112. main.o: /libray/libobj/geom.h
  113. main.o: /libshade/funcdefs.h
  114. main.o: /libshade/options.h
  115. main.o: /libshade/picture.h
  116. main.o: /libshade/rayshade.h
  117. main.o: /libshade/stats.h
  118. main.o: /libshade/viewing.h
  119. raytrace.o: raytrace.c
  120. raytrace.o: /config.h
  121. #raytrace.o: /include/rle.h
  122. #raytrace.o: /include/rle_code.h
  123. #raytrace.o: /include/rle_raw.h
  124. raytrace.o: /libray/libcommon/color.h
  125. raytrace.o: /libray/libcommon/common.h
  126. raytrace.o: /libray/libcommon/error.h
  127. raytrace.o: /libray/libcommon/expr.h
  128. raytrace.o: /libray/libcommon/ray.h
  129. raytrace.o: /libray/libcommon/sampling.h
  130. raytrace.o: /libray/libcommon/transform.h
  131. raytrace.o: /libray/libcommon/vector.h
  132. raytrace.o: /libray/libobj/bounds.h
  133. raytrace.o: /libray/libobj/geom.h
  134. raytrace.o: /libray/libsurf/atmosphere.h
  135. raytrace.o: /libray/libsurf/surface.h
  136. raytrace.o: /libshade/funcdefs.h
  137. raytrace.o: /libshade/options.h
  138. raytrace.o: /libshade/picture.h
  139. raytrace.o: /libshade/rayshade.h
  140. raytrace.o: /libshade/stats.h
  141. raytrace.o: /libshade/viewing.h
  142. raytrace.o: raytrace.h
  143. version.o: version.c
  144. version.o: /config.h
  145. version.o: /libray/libcommon/color.h
  146. version.o: /libray/libcommon/common.h
  147. version.o: /libray/libcommon/error.h
  148. version.o: /libray/libcommon/expr.h
  149. version.o: /libray/libcommon/ray.h
  150. version.o: /libray/libcommon/transform.h
  151. version.o: /libray/libcommon/vector.h
  152. version.o: /libray/libobj/bounds.h
  153. version.o: /libray/libobj/geom.h
  154. version.o: /libshade/funcdefs.h
  155. version.o: /libshade/rayshade.h
  156. version.o: /libshade/stats.h
  157. version.o: /patchlevel.h
  158. _main.o: _main.c
  159.     gcc -O -fstrength-reduce -finline-functions -c _main.c
  160. exit.o: exit.c
  161.     gcc -O -fstrength-reduce -finline-functions -c exit.c
  162.